From ad214e187124f253d036a38423c1c4a4cd5b30e5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 5 Nov 2015 16:13:06 -0500 Subject: [PATCH] window: Add a diagram to the CSS documentation --- gtk/gtkwindow.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index e73df17720..59a1f976ef 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -125,6 +125,21 @@ * The GtkWindow implementation of the GtkBuildable interface supports * setting a child as the titlebar by specifying “titlebar” as the “type” * attribute of a element. + * + * # CSS nodes + * + * |[ + * window + * ╰── decoration + * ]| + * + * GtkWindow has a main CSS node with name window and style class .background, + * and a subnode with name decoration. Style classes that are typically used + * with the main CSS node are .csd, .solid-csd, .ssd, .tiled, .maximized, + * .fullscreen, .popup, .tooltip. + * + * GtkWindow adds the .titlebar and .default-decoration style classes to the + * widget that is added as a titlebar child. */ #define MNEMONICS_DELAY 300 /* ms */ -- 2.30.2